Module 03
Variable names (those created by <- and those created by mutate()) should use only lowercase letters, numbers, and _.
Use _ to separate words within a name.
Tip
Use “long, descriptive names that are easy to understand rather than concise names that are fast to type.”
Put spaces on either side of mathematical operators apart from ^ (i.e. +, -, ==, <, …), and around the assignment operator (<-).
Note
Python code style guide: PEP 8, has similar recommendations for spaces; however, it recommends not using space around the = sign when used to indicate a keyword argument or a default parameter value.
Using line returns (after the comma) to separate arguments in a function call is a good practice.
Happy families are all alike; every unhappy family is unhappy in its own way.
— Leo Tolstoy
Tidy datasets are all alike, but every messy dataset is messy in its own way.
— Hadley Wickham
tibble() (aka a data frame)tribble() (transposed tibble)Applied Statistical Techniques